package com.lx.gulimall.product.feign;

import com.lx.common.to.SkuHasStockVo;
import com.lx.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author lixun Email:lx3027@126.com
 * @create 2021-07-16 15:28
 */
@FeignClient("gulimall-ware")
public interface WareFeignService {

    // 查询sku是否有库存
    @PostMapping("/ware/waresku/hasstock")
    R getSkuHasStock(@RequestBody List<Long> skuIds);

}
